import request from "@/utils/request"

//门禁页面中获取扩展服务
export function getApiExtendServiceList(params) {
    return request({
        url: "/api/app/extend-services/extend-services",
        method: "get",
        params
    })
}

//获取列表
export function getApiExtendPagelist(params) {
    return request({
        url: "/api/app/extend-services/page-list",
        method: "get",
        params
    })
}

//删除服务
export function deleteApiExtendService(id) {
    return request({
        url: `/api/app/extend-services/${id}/extend-service`,
        method: "delete"
    })
}

//保存或者编辑服务
export function insertApiExtendService(data) {
    return request({
        url: "/api/app/extend-services/save-extend-service",
        method: "post",
        data
    })
}